Namespaces

Fonctions

string
__($key, $data = [], bool $choose = false)

Alias of trans

Capsule|mixed
app(string|null $key = null, array $setting = [])

Application container

app_abort(int $code = 500, string $message = '')

Abort bow execution

Response|null
app_abort_if(bool $boolean, int $code, string $message = '')

Abort bow execution if condiction is true

string
app_assets(string $filename)

Gets the app assets

string
app_env($key, $default = null)

Gets the app environement variable

mixed
app_hash(string $data, mixed $hash_value = null)

Alias on the class Hash.

string
app_mode()

Get app enviroment mode

auth(string $guard = null)

Recovery of the guard

mixed
bow_hash(string $data, mixed $hash_value = null)

Alias on the class Hash.

mixed
cache(string $key = null, mixed $value = null, int $ttl = null)

Cache help

string
client_locale()

Get client request language

collect(array $data = [])

Create new Ccollection instance

Loader|mixed
config(string|array $key = null, mixed $setting = null)

Application configuration

create_csrf_token(int $time = null)

Create a new token

string
csrf_field()

Get the input csrf field

string
csrf_time_is_expired(string $time = null)

Check if token is expired by time

string
csrf_token()

Get the generate token

array|null
curl(string $method, string $url, array $params = [], bool $return = false, string $header = null)

Curl help

db(string $name = null, callable $cb = null)

Allows to connect to another database and return the instance of the DB

void
db_commit()

Commit request after transaction

int
db_delete(string $sql, array $data = [])

Launches DELETE type SQL queries

int
db_insert(string $sql, array $data = [])

Launches INSERT SQL Queries

void
db_rollback()

Stop database transaction

void
db_seed(string $entry, array $data = [])

Make programmatic seeding

int|array|stdClass
db_select(string $sql, array $data = [])

Launches SELECT SQL Queries

int|array|StdClass
db_select_one(string $sql, array $data = [])

Launches SELECT SQL Queries

int
db_statement(string $sql)

Launches CREATE TABLE, ALTER TABLE, RENAME, DROP TABLE SQL Query

db_transaction(callable $cb = null)

Start Database transaction

bool
db_transaction_started()

Check if database transaction

int
db_update(string $sql, array $data = [])

Launches UPDATE SQL Queries

void
debug()

debug, variable debug function it allows you to have a color Synthaxic data types.

string
decrypt(string $data)

Decrypt data

string
download(string $file, null|string $filename = null, string $disposition = 'attachment', array $headers = [])

Download file

string
e(string $value)

Escape the HTML tags in the chain.

SimpleMail|Smtp|bool
email(null|string $view = null, array $data = [], callable $cb = null)

Send email

void
emit_event(string $event)

Fire event

emitter()

Event emitter

string
encrypt(string $data)

Encrypt data

file_system(string $mount)

Alias on the mount method

mixed
flash(string $key, string $message)

Flash session

ftp()

Ftp Service loader

string
gen_csrf_token()

Generate token string

string|null
get_header(string $key)

Get http header

int
get_last_insert_id(string $name = null)

Returns the last ID following an INSERT query on a table whose ID is auto_increment.

bool
is_blank(mixed $value)

Determine if the given value is "blank".

mixed
json(mixed $data, int $code = 200, array $headers = [])

Make json response

listen_event(string $event, callable|array|string $fn)

Add event

listen_event_once(string $event, callable|array|string $fn)

Add once event

Monolog
logger(string $level, string $message, array $context = [])

Log error message

string
method_field(string $method)

Create hidden http method field

mount(string $mount)

Alias on the mount method

mixed
old(string $key)

Get old request valude

PDO
pdo()

Get database PDO instance

queue(ProducerService $producer)

Push the producer on queue

Mail|mixed
raw_email(array $to, string $subject, string $message, array $headers = [])

Send raw email

redirect(string|array $path = null)

Make redirect response

redirect_back(int $status = 302)

Make redirection to back

request()

Represents the Request class

response(string $content = '', int $code = 200)

Response object instance

string
route(string $name, array $data = [], bool $absolute = false)

Get Route by name

s3()

S3 Service loader

mixed
sanitize(mixed $data)

Sanitize data

mixed
secure(mixed $data)

Secure data with sanitaze it

mixed
send(string $data)

Send simple message to client

string
sep()

Get the PHP OS separator

mixed
session(mixed $value = null, mixed $default = null)

Session help

void
set_header(string $key, string $value)

Update http headers

PDO
set_pdo(PDO $pdo)

Set PDO instance

mixed
set_status_code(int $code)

Set status code

string
str_camel(string $slug)

Transform text to camel case

string
str_capitalize(string $slug)

Capitalize

bool
str_contains(string $search, string $string)

Check if string contain an other string

string
str_fix_utf8(string $string)

Force output string to utf8

void
str_force_in_utf8()

Force output string to utf8

bool
str_is_alpha(string $string)

Check if the string is alpha

bool
str_is_alpha_num(string $slug)

Check if string is alpha numeric

bool
str_is_domain(string $domain)

Check if the string is domain

bool
str_is_lower(string $string)

Check if the string is lower

bool
str_is_mail(string $email)

Check if the email is valid

bool
str_is_slug(string $slug)

Check if string is slug

bool
str_is_upper(string $string)

Check if the string is upper

string
str_plurial(string $slug)

Transform text to plurial

string
str_random(string $string)

Random string

string
str_shuffle_words(string $words)

Shuffle words

string
str_slug(string $str, string $sep = '-')

Slugify

string
str_snake(string $slug)

Transform text to snake case

array
str_wordify(string $words, string $sep = '')

Check if string is slug

string
t($key, $data = [], bool $choose = false)

Alias of trans

table(string $name, string $connexion = null)

Table alias of DB::table

string
trans(string $key = null, array $data = [], bool $choose = false)

Make translation

string
url(string|null $url = null, array $parameters = [])

Build url

validator(array $inputs, array $rules)

Validate the information on the well-defined criterion

string
verify_csrf(string $token, bool $strict = false)

Check the token value

mixed
view(string $template, array|int $data = [], int $code = 200)

View alias of View::parse